package com.aspire.boc.mms.wmf.util;

import java.util.Vector;

import org.apache.xmlrpc.XmlRpcClient;

/**
 * 粗、细粒度权限工具类
 *
 * @date 2014年8月4日 下午1:46:31 
 * @author Zhanghao
 *
 */
public class PermissionUtil {
    
    /**
     * 远程接口调用
     * @param callUrl
     * @param callMethod
     * @param params
     * @return
     * @throws Exception
     */
    public static Object execXmlRpc(String callUrl, String callMethod, Vector<Object> params) throws Exception {
        
        XmlRpcClient rpcClient = new XmlRpcClient(callUrl);
        return rpcClient.execute(callMethod, params);
    }
    
}
